﻿using UnityEngine;
using System.Collections;

namespace Battle.View
{
    /*
    public class BattleUltimateState :Fsm.FsmStateBase<CameraState>
    {
        CameraController controller;
        public BattleUltimateState( CameraState stateType, CameraController controller )
            : base( stateType, controller )
        {
            this.controller = controller;
        }

        public override void Enter()
        {
            if( BattleManager.GetInstance().battleViewCtrl.curRunningCamp == BattleCamp.Attacker )
            {
                var pkg = BattleViewCtrl.GetInstance().GetUltimatePackage();
                var src= BattleViewCtrl.GetInstance().GetBattleCharacter( pkg.actorUid );

                var fpid = src.FPId;

                if( fpid== 3 )
                {
                    controller.animationKit.Play( CameraAnimationType.ULTMATE_SKILL_P1 );
                }
                else if( fpid == 7 )
                {
                    controller.animationKit.Play( CameraAnimationType.ULTMATE_SKILL_P2 );
                }
                else if( fpid == 9 )
                {
                    controller.animationKit.Play( CameraAnimationType.ULTMATE_SKILL_P3 );
                }
                else if( fpid == 13 )
                {
                    controller.animationKit.Play( CameraAnimationType.ULTMATE_SKILL_P4 );
                }
            }
        }

        public override void Leave()
        {
            if( BattleManager.GetInstance().battleViewCtrl.curRunningCamp == BattleCamp.Attacker )
            {
                controller.animationKit.Play( CameraAnimationType.ULTIMATE_END );
            }
        }
    }
    */
}